package ru.dadle8.repository;

import org.springframework.data.mongodb.repository.MongoRepository;
import ru.dadle8.model.db.DbUser;

import java.util.Optional;

public interface UserRepository extends MongoRepository<DbUser, String> {

    Optional<DbUser> findByTelegramProfile_UserId(Long userId);

}
